package com.yj.web.help;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;

/**
 * Created by teieka on 2017/2/13.
 */
public class StrDateUtils {
    private static DateTimeFormatter dtf = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd HH:mm:ss").toFormatter();
    public static LocalDateTime genDateTime(String dateTime) {
        LocalDateTime ldt = LocalDateTime.parse(dateTime, dtf);
        return ldt;
    }
}
